<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateTableSiphonlogs extends Migration {
	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up() {
		Schema::create('siphonlogs', function (Blueprint $table) {
			$table->increments('id');
			$table->integer('sendlog_id')->comment('记录id');
			$table->integer('map_id')->comment('渠道与活动关联id');
			$table->integer('wx_id')->comment('微信用户表id');
			$table->dateTime('create_time')->comment('创建时间');
			$table->dateTime('expore_time')->comment('过期时间');
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down() {
		Schema::dropIfExists('siphonlogs');
	}
}
